Stefan Monnier [Mon, 11 May 2015 02:15:12 +0000 (22:15 -0400)]
CEDET (srecode-insert-fcn): Fix use of oref on a class
* lisp/cedet/srecode/insert.el (srecode-insert-fcn): Fix use of oref on
a class. Reported by Pierre Lorenzon.
(srecode-template-inserter-point): Remove declaration.
Stefan Monnier [Mon, 11 May 2015 02:08:07 +0000 (22:08 -0400)]
CEDET (srecode-create-dictionary): Avoid obsolete object name
* lisp/cedet/srecode/dictionary.el (srecode-create-dictionary):
Don't use a symbol as an object name. Reported by Pierre Lorenzon.
Paul Eggert [Mon, 11 May 2015 00:24:05 +0000 (17:24 -0700)]
C-x 8 shorthands for curved quotes, Euro, etc.
Although C-x 8 lets you insert arbitrary Unicode characters,
it's awkward to use this to insert commonly used symbols such as curved
quotes, the Euro symbol, etc. This patch adds simpler sequences for
characters commonly found in English text and in basic math.
For example, assuming the Alt key works on your keyboard and iso-transl
is loaded, one can now type "A-[" instead of "A-RET LEFT SIN TAB RET"
to get the character "‘" (U+2018 LEFT SINGLE QUOTATION MARK).
(Bug#20499)
* doc/emacs/mule.texi (Unibyte Mode):
A few other printing characters now work too.
* etc/NEWS: Document this.
* lisp/international/iso-transl.el (iso-transl-char-map):
Also support the following characters:
‐ ‑ ‒ – — ― ‘ ’ “ ” † ‡ • ′ ″ € № ← → ↔ − ≈ ≠ ≤ ≥
Dmitry Gutov [Sun, 10 May 2015 23:07:27 +0000 (02:07 +0300)]
Add xref-find-regexp
* lisp/progmodes/xref.el (xref-find-function): Describe the
`matches' action.
(xref-find-regexp): New command, using it.
(xref-collect-references): Rename to xref-collect-matches.
(xref--collect-reference): Rename to xref--collect-match.
(xref-collect-matches, xref--collect-match): Accept new argument,
KIND. Update accordingly.
(xref--regexp-to-extended): New function.
* lisp/progmodes/elisp-mode.el (elisp-xref-find): Support the
`matches' action.
(elisp--xref-find-matches): Accept new argument. Resolve a FIXME.
* lisp/progmodes/etags.el (etags-xref-find):
Support the `matches' action.
(etags--xref-find-matches): New function.
Glenn Morris [Sun, 10 May 2015 19:01:39 +0000 (12:01 -0700)]
* Makefile.in: Fixes for recent change-history changes.
(change-history-nocommit): Update footer regexp.
Ensure output script stays executable.
Nicolas Petton [Sun, 10 May 2015 18:19:38 +0000 (20:19 +0200)]
New version of `seq-let' based on a pcase pattern
* lisp/emacs-lisp/seq.el (seq-let): Define the macro in terms of a
pcase pattern if `pcase-defmacro' is defined (Emacs>=25.1).
Przemysław Wojnowski [Tue, 28 Apr 2015 17:10:01 +0000 (19:10 +0200)]
Add basic HTML5 tags and a template
* lisp/textmodes/sgml-mode.el: Basic HTML5 support.
(html-tag-alist): Add HTML5 tags.
(html-tag-help): Add new tags descriptions.
(html-navigational-links): Template for nav links.
(html-html5-template): Template for a HTML5 page.
Dmitry Gutov [Sun, 10 May 2015 17:43:54 +0000 (20:43 +0300)]
semantic/symref/grep: Don't use word boundaries
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-perform-search): Instead of wrapping input in
word boundaries, check that the characters before and after are
not word constituents.
Dmitry Gutov [Sun, 10 May 2015 14:27:16 +0000 (17:27 +0300)]
semantic/symref/grep: Support regexp search
* lisp/cedet/semantic/symref.el
(semantic-symref-hit-to-tag-via-buffer): Don't regexp-quote when
the search type is regexp.
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-perform-search): Support the regexp search type.
Pass -E to Grep when it's used.
Dmitry Gutov [Sun, 10 May 2015 00:49:11 +0000 (03:49 +0300)]
semantic-symref-regexp: Allow to input an arbitrary string
* lisp/cedet/semantic/symref/list.el (semantic-symref-regexp):
Allow to input an arbitrary string interactively.
Dmitry Gutov [Sat, 9 May 2015 21:36:46 +0000 (00:36 +0300)]
Remove tag-symbol-match-p from etags-xref-find-definitions-tag-order
* lisp/progmodes/etags.el (etags-xref-find-definitions-tag-order):
Remove tag-symbol-match-p from the default value
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00292.html).
Dmitry Gutov [Fri, 8 May 2015 00:06:42 +0000 (03:06 +0300)]
Declare find-tag obsolete
* lisp/progmodes/etags.el (find-tag): Declare obsolete in favor of
xref-find-definitions.
Jan D [Sun, 10 May 2015 17:30:39 +0000 (19:30 +0200)]
Draw composite string correctly (Bug#20537).
* nsterm.m (ns_draw_composite_glyph_string_foreground): New function.
(ns_draw_glyph_string): Call it (Bug#20537).
Glenn Morris [Sun, 10 May 2015 10:24:00 +0000 (06:24 -0400)]
; Auto-commit of ChangeLog files.
Eli Zaretskii [Sat, 9 May 2015 13:06:48 +0000 (16:06 +0300)]
Avoid infloop in ERC
* lisp/simple.el (line-move-to-column): Ignore field boundaries
while computing line beginning position. (Bug#20498)
Glenn Morris [Sat, 9 May 2015 10:24:38 +0000 (06:24 -0400)]
; Auto-commit of loaddefs files.
Glenn Morris [Sat, 9 May 2015 01:34:35 +0000 (21:34 -0400)]
* Makefile.in (ChangeLog): No longer pass "srcprefix"; cd instead.
* build-aux/gitlog-to-emacslog: Check called from right directory.
(srcprefix): Remove.
Glenn Morris [Sat, 9 May 2015 01:15:48 +0000 (21:15 -0400)]
* build-aux/gitlog-to-emacslog: Get rid of "distprefix".
* Makefile.in (ChangeLog): No longer pass "distprefix".
* make-dist: Update "make ChangeLog" syntax for the above change.
Glenn Morris [Sat, 9 May 2015 01:02:36 +0000 (21:02 -0400)]
* build-aux/gitlog-to-emacslog: Don't hard-code "ChangeLog.2".
* Makefile.in (ChangeLog): Pass -n to gitlog-to-emacslog.
Glenn Morris [Sat, 9 May 2015 00:55:41 +0000 (20:55 -0400)]
* build-aux/gitlog-to-emacslog: Add "for earlier changes" to footer.
Glenn Morris [Sat, 9 May 2015 00:45:22 +0000 (20:45 -0400)]
Add command-line option-parsing to gitlog-to-emacslog.
* build-aux/gitlog-to-emacslog: Add command-line options.
By default, refuse to remove an existing output file.
* Makefile.in (CHANGELOG): Update default.
(ChangeLog): Do not test for existing file.
(change-history-nocommit): Ensure temp file does not exist.
Glenn Morris [Sat, 9 May 2015 00:24:37 +0000 (20:24 -0400)]
Quieten --without-x compilation.
* lisp/term/common-win.el: Provide a feature.
* lisp/term/x-win.el (term/common-win): Require it.
Glenn Morris [Sat, 9 May 2015 00:14:42 +0000 (20:14 -0400)]
* lisp/dired-aux.el (dired-do-print): Require lpr.
Glenn Morris [Sat, 9 May 2015 00:13:47 +0000 (20:13 -0400)]
Quieten compilation, eg in --without-x builds.
* lisp/dired-aux.el (lpr-printer-switch):
* lisp/frame.el (tool-bar-height):
* lisp/linum.el (font-info):
* lisp/window.el (font-info, overflow-newline-into-fringe)
(tool-bar-height):
* lisp/emacs-lisp/package-x.el (tar-data-buffer):
* lisp/gnus/gnus-util.el (iswitchb-mode):
* lisp/mail/rmailmm.el (libxml-parse-html-region):
* lisp/net/nsm.el (gnutls-peer-status)
(gnutls-peer-status-warning-describe):
* lisp/net/shr.el (libxml-parse-xml-region):
* lisp/url/url-http.el (gnutls-peer-status): Declare.
Stefan Monnier [Fri, 8 May 2015 17:28:57 +0000 (13:28 -0400)]
CEDET (srecode-pop, srecode-peek): Don't use `subclass'
* lisp/cedet/srecode/insert.el (srecode-pop, srecode-peek): Don't use
`subclass' since they're never called with a class.
(srecode-insert-method, srecode-insert-subtemplate): Avoid obsolete
srecode-dictionary-child-p.
Nicolas Richard [Fri, 8 May 2015 15:26:20 +0000 (17:26 +0200)]
help--binding-locus: Document argument POSITION.
* lisp/help.el (help--binding-locus): Document argument POSITION. (bug#20530)
Paul Eggert [Fri, 8 May 2015 15:05:25 +0000 (08:05 -0700)]
Merge from gnulib.
* doc/misc/texinfo.tex: Get latest version.
Oleh Krehel [Fri, 8 May 2015 14:43:21 +0000 (16:43 +0200)]
ffap.el (ffap-read-file-or-url): Fix completing-read call
* lisp/ffap.el (ffap-read-file-or-url): The HIST argument of
`completing-read' should be a symbol.
Glenn Morris [Fri, 8 May 2015 10:22:25 +0000 (06:22 -0400)]
; Auto-commit of loaddefs files.
Eli Zaretskii [Fri, 8 May 2015 09:20:16 +0000 (12:20 +0300)]
Verify file modifications by other programs
* src/filelock.c (lock_file): Check whether the file was modified
since it was visited even if 'create-lockfiles' is nil. (Bug#18828)
Eli Zaretskii [Fri, 8 May 2015 09:11:05 +0000 (12:11 +0300)]
Fix keyboard macros that include function keys
* src/keyboard.c (read_char_minibuf_menu_prompt): Record function
keys in the macro before returning. (Bug#20454)
Glenn Morris [Fri, 8 May 2015 06:10:57 +0000 (23:10 -0700)]
* build-aux/gitlog-to-changelog: Treat "Tiny-change" like
"Copyright-paperwork-exempt". (Bug#20324)
Glenn Morris [Fri, 8 May 2015 06:03:02 +0000 (23:03 -0700)]
* lisp/vc/log-edit.el: Handle "(tiny change)". (Bug#20324)
(log-edit-rewrite-tiny-change): New variable.
(log-edit-insert-changelog): Maybe add "Copyright-paperwork-exempt".
(log-edit-changelog-ours-p): Set log-edit-author to a cons.
* etc/NEWS: Mention this.
Glenn Morris [Fri, 8 May 2015 05:42:37 +0000 (22:42 -0700)]
* lisp/calc/calc.el (math-zerop): Declare.
Glenn Morris [Fri, 8 May 2015 05:42:12 +0000 (22:42 -0700)]
* lisp/emacs-lisp/eieio-opt.el (help-fns-short-filename): Declare.
Artur Malabarba [Thu, 7 May 2015 20:13:29 +0000 (21:13 +0100)]
* lisp/emacs-lisp/subr-x.el (if-let): Fix debug spec
Support the case when BINDINGS is a single tuple. (Bug#20525)
Artur Malabarba [Thu, 7 May 2015 19:32:24 +0000 (20:32 +0100)]
* etc/NEWS: Fix typo in commit
14bb519
Jan D [Thu, 7 May 2015 18:09:16 +0000 (20:09 +0200)]
Warn for multiple display crash for all Gtk+ versions.
* configure.ac: Warn for multiple display crash for all Gtk+
versions. Output URL to Gtk+ bug (Bug#20452).
Jan D [Thu, 7 May 2015 17:48:19 +0000 (19:48 +0200)]
ns-win.el (ns-paste-secondary): Use gui-get-selection.
* ns-win.el (ns-paste-secondary): Use gui-get-selection.
Artur Malabarba [Thu, 7 May 2015 15:11:50 +0000 (16:11 +0100)]
* lisp/emacs-lisp/package.el: New "external" package status
An external package is any installed package that's not built-in
and not from `package-user-dir', which usually means it's from an
entry in `package-directory-list'. They are treated much like
built-in packages, in that they cannot be through the Package Menu
deleted and are not considered for upgrades.
(package-desc-status): Identify if a package is installed outside
`package-user-dir'.
(package-menu--print-info-simple)
(package-menu--status-predicate): Add support for it.
* etc/NEWS: Document it.
Stefan Monnier [Thu, 7 May 2015 02:27:36 +0000 (22:27 -0400)]
* lisp/mail/rmail.el: Use lexical-binding
(rmail-bury): Remove unused var `buffer-to-bury'.
(rmail-get-new-mail): Remove unused vars `opoint' and `success'.
(rmail-parse-url): Remove unused var `proto', `user', and `host'.
(rmail-unrmail-new-mail-maybe): Remove unused var `new-file'.
(rmail-insert-inbox-text): Remove unused var `movemail'.
(rmail-add-mbox-headers): Remove unused var `limit'.
(rmail-undelete-previous-message): Remove unused var `value'.
(rmail-reply): Remove unused vars `resent-to', `resent-cc',
`resent-reply-to'.
(rmail-mime-mbox-buffer, rmail-mime-view-buffer): Declare.
(rmail-restore-desktop-buffer): Rename arguments.
Glenn Morris [Thu, 7 May 2015 02:01:02 +0000 (22:01 -0400)]
* Makefile.in (change-history-commit): Add missing piece of previous.
Glenn Morris [Thu, 7 May 2015 01:58:58 +0000 (21:58 -0400)]
Avoid unnecessary bumping of Makefile.in's timestamp.
* Makefile.in (gen_origin): Move to gitlog-to-emacslog.
(emacslog): New variable.
(ChangeLog): Use $emacslog. Don't pass $gen_origin.
(unchanged-history-files): Use $emacslog rather than Makefile.in.
(change-history-nocommit): Store hash in $emacslog.
* build-aux/gitlog-to-emacslog (gen_origin): Move default here.
* admin/update_autogen (changelog_files): Update for the above.
Glenn Morris [Thu, 7 May 2015 01:40:28 +0000 (21:40 -0400)]
* Makefile.in: Don't always insist on removing existing "ChangeLog".
(CHANGELOG): New variable.
(no-ChangeLog): Remove.
(ChangeLog): Replace "no-ChangeLog"; pass output file to script.
(change-history-nocommit): Use a temp file rather than insisting
on deletion of any existing "ChangeLog".
Glenn Morris [Thu, 7 May 2015 01:37:09 +0000 (21:37 -0400)]
* build-aux/gitlog-to-emacslog: Allow specification of output.
Glenn Morris [Thu, 7 May 2015 01:35:28 +0000 (21:35 -0400)]
* admin/update_autogen: Add option to update ChangeLog.
(usage): Mention -H.
(changelog_flag, changelog_n, changelog_files): New variables.
(main): Check for -H, and maybe run change-history-nocommit.
Stefan Monnier [Thu, 7 May 2015 01:13:56 +0000 (21:13 -0400)]
* lisp/subr.el (delete-dups): Pre-size the hashtable.
Stefan Monnier [Wed, 6 May 2015 21:43:43 +0000 (17:43 -0400)]
(define-modify-macro): Make sure cl--arglist-args is defined
* lisp/emacs-lisp/cl.el (define-modify-macro): Make sure
cl--arglist-args is defined (bug#20517).
Glenn Morris [Wed, 6 May 2015 21:02:06 +0000 (17:02 -0400)]
* Makefile.in (change-history-nocommit): New.
Dmitry Gutov [Wed, 6 May 2015 20:15:45 +0000 (23:15 +0300)]
Only cancel timer when it is non-nil
* lisp/cedet/pulse.el (pulse-momentary-unhighlight): Only cancel
timer when it is non-nil
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00223.html).
Glenn Morris [Wed, 6 May 2015 20:02:32 +0000 (16:02 -0400)]
Quieten cedet compilation
* lisp/cedet/semantic/db-el.el (semanticdb-elisp-sym->tag):
Invert fboundp test to quieten on current Emacs.
* lisp/cedet/ede/config.el (ede-shell-run-something)
(semanticdb-file-table-object, semanticdb-needs-refresh-p)
(semanticdb-refresh-table): Declare.
(ede-preprocessor-map): Require semantic/db.
Glenn Morris [Wed, 6 May 2015 20:00:22 +0000 (16:00 -0400)]
Quieten cc-mode compilation
* lisp/progmodes/cc-awk.el (c-forward-sws):
* lisp/progmodes/cc-cmds.el (c-forward-subword, c-backward-subword):
Declare.
Oleh Krehel [Wed, 6 May 2015 19:30:54 +0000 (21:30 +0200)]
lisp/subr.el (delete-dups): Avoid nreverse.
Artur Malabarba [Wed, 6 May 2015 18:27:43 +0000 (19:27 +0100)]
* lisp/subr.el (delete-dups): Make it destructive again.
Paul Eggert [Wed, 6 May 2015 17:56:11 +0000 (10:56 -0700)]
* doc/lispref/sequences.texi (Sequence Functions): Fix quoting.
Glenn Morris [Wed, 6 May 2015 16:14:43 +0000 (09:14 -0700)]
; * etc/NEWS: Add entry as a reminder to update the elisp manual.
Stefan Monnier [Wed, 6 May 2015 14:50:48 +0000 (10:50 -0400)]
* lisp/emacs-lisp/testcover.el: Don't use edebug--read (bug#20487)
* lisp/emacs-lisp/testcover.el: Use lexical-binding.
(testcover--read): Rename from testcover-read. Change calling convention.
Use edebug-read-and-maybe-wrap-form now that edebug-read is gone.
(testcover-start): Use add-function. Move edebug-all-defs binding to
testcover--read.
(testcover-this-defun): Tighten scope of edebug-all-defs binding.
(testcover-mark): Remove unused var `item'.
* src/lread.c (syms_of_lread): Default load-read-function to `read'.
Oleh Krehel [Wed, 6 May 2015 13:21:23 +0000 (15:21 +0200)]
lisp/subr.el (delete-dups): Use a hash table
* lisp/subr.el (delete-dups): When there are more than 100 candidates,
use a hash table. This can result in ~500 times speed-up for typical
collections of size 5000, like that of `load-library'.
Stefan Monnier [Wed, 6 May 2015 13:56:03 +0000 (09:56 -0400)]
CEDET: Avoid `oref' on classes in a few more cases
* lisp/cedet/ede/generic.el (ede-find-target):
* lisp/cedet/ede.el (ede-project-forms-menu): Avoid `oref' on classes.
* lisp/cedet/semantic/bovine/gcc.el (semantic-gcc-setup): Remove unused
var `prefix'.
Stefan Monnier [Wed, 6 May 2015 13:44:30 +0000 (09:44 -0400)]
* lisp/cedet/semantic/symref/grep.el: Fix unused var warnings
* lisp/cedet/semantic/symref/grep.el (grepflags, greppattern): Declare.
(semantic-symref-perform-search): Remove unused var `pat'.
Stefan Monnier [Wed, 6 May 2015 13:12:40 +0000 (09:12 -0400)]
CEDET (srecode-compile-inserter): Avoid `oref' on classes
* lisp/cedet/srecode/compile.el (srecode-compile-inserter):
Avoid `oref' on classes (bug#20491).
(srecode-compile-split-code): Remove unused var `key'.
Dmitry Gutov [Wed, 6 May 2015 12:21:32 +0000 (15:21 +0300)]
Clean up pulse.el a little
* lisp/cedet/pulse.el (pulse): Remove.
(pulse-momentary-timer): Save instead of the stop time.
(pulse-momentary-highlight-overlay): Call
pulse-momentary-unhighlight first thing. Treat
pulse-momentary-overlay as a single value, not a list. Save the
created timer. Only pass the stop time to the timer.
(pulse-tick): Update accordingly.
(pulse-momentary-unhighlight): Treat pulse-momentary-overlay as a
single value. Cancel the timer.
Glenn Morris [Wed, 6 May 2015 10:19:35 +0000 (06:19 -0400)]
; Auto-commit of loaddefs files.
Tassilo Horn [Wed, 6 May 2015 05:49:20 +0000 (07:49 +0200)]
Support the biblatex journaltitle field
* lisp/textmodes/reftex-cite.el (reftex-format-bib-entry):
Support the biblatex journaltitle field.
Glenn Morris [Wed, 6 May 2015 03:13:10 +0000 (20:13 -0700)]
Minor declare-function improvement
* lisp/emacs-lisp/bytecomp.el
(byte-compile-macroexpand-declare-function):
Handle declarations after calls. (Bug#20509)
Glenn Morris [Wed, 6 May 2015 03:11:22 +0000 (20:11 -0700)]
* lisp/progmodes/js.el (js--optimize-arglist): Remove declaration.
Glenn Morris [Wed, 6 May 2015 03:10:59 +0000 (20:10 -0700)]
* lisp/w32-fns.el (w32-shell-name): Silence compiler.
Dmitry Gutov [Wed, 6 May 2015 02:54:52 +0000 (05:54 +0300)]
Pulse using a timer
* lisp/cedet/pulse.el (pulse-momentary-stop-time): New variable.
(pulse-momentary-highlight-overlay): Set up the timer instead of
calling `pulse'
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/).
(pulse-tick): New function.
(pulse-momentary-unhighlight): Cut off the stop time.
(pulse-delay): Update the docstring WRT to not using sit-for.
Dmitry Gutov [Wed, 6 May 2015 01:49:01 +0000 (04:49 +0300)]
Add semantic/symref/grep file patterns for ruby-mode
* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist): Add patterns for
ruby-mode. Clarify the docstring.
Dmitry Gutov [Wed, 6 May 2015 01:35:46 +0000 (04:35 +0300)]
Don't require match
* lisp/progmodes/xref.el (xref--read-identifier): Don't require
match. That doesn't work for every command, and some identifier
completion tables are bound to be imperfect anyway.
Stefan Monnier [Wed, 6 May 2015 02:18:19 +0000 (22:18 -0400)]
* lisp/cedet/semantic/grammar.el: Fix compiler warnings (bug#20505)
(semantic-grammar--template-expand): New function.
(semantic-grammar-header, semantic-grammar-footer): Use it.
(semantic-grammar--lex-block-specs): Remove unused var `block-spec'.
(semantic-grammar-file-regexp): Refine regexp.
(semantic-grammar-eldoc-get-macro-docstring):
Use elisp-get-fnsym-args-string when available.
(semantic-idle-summary-current-symbol-info): Use new elisp-* names
instead of the old eldoc-* names.
* lisp/emacs-lisp/eldoc.el (eldoc-docstring-format-sym-doc): Move back
from elisp-mode.el. Tweak calling convention.
* lisp/progmodes/elisp-mode.el (package-user-dir): Declare.
(elisp-get-fnsym-args-string): Add `prefix' argument. Rename from
elisp--get-fnsym-args-string.
(elisp--highlight-function-argument): Add `prefix' arg.
(elisp-get-var-docstring): Rename from elisp--get-var-docstring.
(elisp--docstring-format-sym-doc): Move back to eldoc.el.
Glenn Morris [Tue, 5 May 2015 23:50:43 +0000 (19:50 -0400)]
* lisp/help-fns.el (describe-function-1):
Handle builtins with advertised calling conventions. (Bug#20479)
Nicolas Petton [Tue, 5 May 2015 20:10:32 +0000 (22:10 +0200)]
Merge branch 'seq-let'
Nicolas Petton [Tue, 5 May 2015 20:04:18 +0000 (22:04 +0200)]
Update `seq-let' documentation
* doc/lispref/sequences.texi: Update the documentation of `seq-let'
with the support of `&rest'.
Nicolas Petton [Tue, 5 May 2015 19:45:36 +0000 (21:45 +0200)]
Add support for &rest in `seq-let'
* lisp/emacs-lisp/seq.el (seq--make-bindings): Add support for `&rest'
in the argument list.
* test/automated/seq-tests.el: Add a test for parsing and binding
`&rest' in `seq-let'.
Paul Eggert [Tue, 5 May 2015 19:25:18 +0000 (12:25 -0700)]
Spelling fixes
(tiny change) Pierre Lorenzon [Tue, 5 May 2015 18:47:58 +0000 (14:47 -0400)]
* eieio-custom.el (eieio-object-value-get): Add missing increment
Fixes: debbugs:20467
(tiny change) Pierre Lorenzon [Tue, 5 May 2015 18:43:48 +0000 (14:43 -0400)]
(eieio-object-value-create): Adjust to new slots representation
Fixes: debbugs:20467
* eieio-custom.el (eieio-object-value-create):
Fix missed adjustment to new representation of slots metadata.
Nicolas Petton [Tue, 5 May 2015 18:39:40 +0000 (20:39 +0200)]
* lisp/emacs-lisp/seq.el (seq--make-bindings): Improve the docstring.
Dmitry Gutov [Tue, 5 May 2015 12:28:41 +0000 (15:28 +0300)]
Work around "Attempt to modify read-only object"
* lisp/progmodes/elisp-mode.el (elisp--xref-format): Extract from
elisp--xref-find-definitions, to work around "Attempt to modify
read-only object" error.
Dmitry Gutov [Tue, 5 May 2015 12:11:14 +0000 (15:11 +0300)]
Only skip some variables that have function counterparts
* lisp/progmodes/elisp-mode.el (elisp--xref-identifier-location):
Only skip minor-mode-named variable if it's defined in a Lisp
file, and it's in minor-mode-list (bug#20506).
* test/automated/elisp-mode-tests.el
(elisp-xref-finds-both-function-and-variable)
(elisp-xref-finds-only-function-for-minor-mode): New tests.
Dmitry Gutov [Tue, 5 May 2015 02:17:14 +0000 (05:17 +0300)]
; Update a comment
Dmitry Gutov [Tue, 5 May 2015 02:05:02 +0000 (05:05 +0300)]
Buttonize the whole line, including the number at the beginning
* lisp/progmodes/xref.el (xref--location-at-point): Revert the
previous change.
(xref--insert-xrefs): Buttonize the whole line, including the
number at the beginning.
Dmitry Gutov [Tue, 5 May 2015 01:54:01 +0000 (04:54 +0300)]
Make sure we're inside the let bindings
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Make sure we're inside the let bindings.
* test/automated/elisp-mode-tests.el
(elisp-completes-functions-after-let-bindings): New test.
Glenn Morris [Tue, 5 May 2015 00:46:47 +0000 (20:46 -0400)]
* lisp/cedet/semantic/grammar.el (eldoc-function-argstring)
(eldoc-docstring-format-sym-doc, eldoc-last-data-store)
(eldoc-get-fnsym-args-string, eldoc-get-var-docstring):
Remove outdated declarations.
Glenn Morris [Tue, 5 May 2015 00:38:16 +0000 (20:38 -0400)]
Replace instances of "(eval-when-compile (autoload ...))"
* lisp/gnus/gnus-art.el (nneething-get-file-name):
Declare rather than autoload.
* lisp/gnus/gnus-async.el (gnus-html-prefetch-images):
Remove pointless autoload.
* lisp/gnus/gnus-sync.el (gnus-group-topic): Autoload at run-time.
(gnus-topic-create-topic, gnus-topic-enter-dribble):
Declare rather than autoload.
* lisp/gnus/mm-archive.el (gnus-recursive-directory-files)
(mailcap-extension-to-mime): Autoload at run-time.
* lisp/gnus/mm-util.el (latin-unity-massage-name)
(latin-unity-maybe-remap, latin-unity-representations-feasible-region)
(latin-unity-representations-present-region):
Declare rather than autoload.
* lisp/gnus/mml-smime.el (epg-make-context)
(epg-passphrase-callback-function): Autoload at run-time.
(epg-context-set-signers, epg-context-result-for)
(epg-new-signature-digest-algorithm)
(epg-verify-result-to-string, epg-list-keys, epg-verify-string)
(epg-sign-string, epg-encrypt-string)
(epg-context-set-passphrase-callback, epg-sub-key-fingerprint)
(epg-configuration, epg-expand-group, epa-select-keys):
Declare rather than autoload.
* lisp/gnus/nnir.el (nnimap-change-group, nnimap-make-thread-query):
Autoload at run-time.
(gnus-group-topic-name, nnimap-buffer, nnimap-command)
(gnus-registry-get-id-key, gnus-registry-action):
Declare rather than autoload.
* lisp/gnus/nnmail.el (mail-send-and-exit): Autoload at run-time.
* lisp/gnus/spam.el (spam-stat-buffer-change-to-non-spam)
(spam-stat-buffer-change-to-spam, spam-stat-buffer-is-non-spam)
(spam-stat-buffer-is-spam, spam-stat-load, spam-stat-save)
(spam-stat-split-fancy): Remove pointless autoloads.
* lisp/net/mairix.el: Load gnus-util when compiling.
(gnus-group-read-ephemeral-group, gnus-summary-toggle-header)
(message-field-value): Declare rather than autoload.
(mairix-gnus-ephemeral-nndoc, mairix-gnus-fetch-field):
Check gnus-alive-p is fbound.
(vm-quit, vm-visit-folder, vm-select-folder-buffer)
(vm-check-for-killed-summary, vm-error-if-folder-empty)
(vm-get-header-contents, vm-select-marked-or-prefixed-messages):
Declare rather than autoload.
Glenn Morris [Tue, 5 May 2015 00:34:09 +0000 (20:34 -0400)]
* lisp/gnus/mm-view.el (epg-decrypt-string): Autoload.
Glenn Morris [Tue, 5 May 2015 00:33:01 +0000 (20:33 -0400)]
* lisp/gnus/mml-smime.el (epg-key-sub-key-list)
(epg-sub-key-capability, epg-sub-key-validity): Fix declarations.
Glenn Morris [Tue, 5 May 2015 00:22:52 +0000 (20:22 -0400)]
* lisp/progmodes/elisp-mode.el (xref-collect-references): Declare.
Glenn Morris [Tue, 5 May 2015 00:22:15 +0000 (20:22 -0400)]
* lisp/emacs-lisp/debug.el (help-xref-interned): Update declaration.
Glenn Morris [Tue, 5 May 2015 00:21:47 +0000 (20:21 -0400)]
* lisp/allout.el (epg-user-id-string, epg-key-user-id-list):
* lisp/emacs-lisp/package.el (epg-signature-status):
Fix declarations.
Glenn Morris [Tue, 5 May 2015 00:20:40 +0000 (20:20 -0400)]
* lisp/play/gametree.el (gametree-show-children-and-entry)
(gametree-apply-layout, gametree-mouse-show-subtree)
(gametree-mouse-hide-subtree): Replace obsolete outline aliases.
Glenn Morris [Tue, 5 May 2015 00:17:35 +0000 (20:17 -0400)]
* lisp/emacs-lisp/check-declare.el (check-declare-verify):
Handle cl-defgeneric, cl-defmethod.
Dmitry Gutov [Mon, 4 May 2015 23:58:02 +0000 (02:58 +0300)]
Highlight both type and symbol name
* lisp/progmodes/elisp-mode.el (elisp--xref-find-definitions):
Highlight both type and symbol name.
Dmitry Gutov [Mon, 4 May 2015 23:44:20 +0000 (02:44 +0300)]
Insert, highlight and align line numbers in xref output
* lisp/progmodes/etags.el (xref-location-line): Specialize for
xref-etags-location.
* lisp/progmodes/xref.el (xref-location-line): New generic method.
(xref-file-location): Add reader for the line slot.
(xref--location-at-point): Skip to the `xref-location' property.
(xref--collect-reference): Drop the line number from description.
(xref--insert-xrefs): Insert, highlight and align line numbers.
Daniel Colascione [Mon, 4 May 2015 22:40:55 +0000 (15:40 -0700)]
Fix previous commit
Dmitry Gutov [Mon, 4 May 2015 20:16:12 +0000 (23:16 +0300)]
Don't pulse the indentation, or the newline
* lisp/cedet/pulse.el (pulse-lighten-highlight)
(pulse-reset-face): Fall back to the inherited background
attribute in FACE.
(pulse-momentary-highlight-region): Add autoload cookie.
* lisp/progmodes/xref.el (xref--maybe-pulse): Don't highlight the
indentation, or the newline, if the line's non-empty
(http://lists.gnu.org/archive/html/emacs-devel/2015-05/msg00118.html).
Daniel Colascione [Mon, 4 May 2015 18:46:12 +0000 (11:46 -0700)]
Add `save-mark-and-excursion', which has the old `save-excursion' behavior
* doc/lispref/positions.texi (Excursions): Document
`save-mark-and-excursion'.
* lisp/font-lock.el (font-lock-fontify-block): Use
`save-mark-and-excursion' instead of `save-excursion', restoring
Emacs 24 behavior.
* lisp/simple.el (save-mark-and-excursion--save)
(save-mark-and-excursion--restore): New functions.
(save-mark-and-excursion): New user macro.
* src/editfns.c (Fsave_excursion): Mention
`save-mark-and-excursion' in `save-excursion' documentation.
Dmitry Gutov [Mon, 4 May 2015 15:50:44 +0000 (18:50 +0300)]
Classify lone symbol inside let varlist as variable
* lisp/progmodes/elisp-mode.el (elisp-completion-at-point):
Classify lone symbol inside let varlist as variable.
* test/automated/elisp-mode-tests.el (completest-variables-in-let-bindings):
New test.
Dmitry Gutov [Mon, 4 May 2015 15:09:33 +0000 (18:09 +0300)]
Add xref-pulse-on-jump
* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line):
Add autoload cookie.
* lisp/progmodes/xref.el (xref-pulse-on-jump): New option.
(xref--maybe-pulse): New function.
(xref-pop-marker-stack, xref--pop-to-location)
(xref--display-position): Use it.
(xref--location-at-point): Use back-to-indentation.